<template>
  <div class="flex vertical align-center page-home">
    <h2 class="home-title">{{title}}</h2>
    <div class="flex-1 flex vertical justify-center align-center page-p-l page-p-r page-cont">
      <vant-button class="item" round block type="danger" @click="toApply">我要申请</vant-button>
      <vant-button class="item" round block type="danger" @click="toSearch">进度查询与变更</vant-button>
    </div>
  </div>
</template>

<script>
import settings from '@/settings'
const { title } = settings


export default {
  name: "Home",
  data() {
    return {
      title
    }
  }, 
  methods: {
    toApply() {
      // this.toPage('/notice')
      this.toPage('/apply')
    },
    toSearch() {
      this.toPage('/search')
    },
    toPage(path) {
      this.$router.push(path)
    }
  }
}
</script>

<style lang="less" scoped>
.page-home {
  height: 100%;
  .home-title {
    padding: 20px 0;
    font-size: 30px;
  }
  .item {
    & + .item {
      margin-top: 20px;
    }
  }
  .page-cont {
    width: 100%;
  }
}
</style>